home *** CD-ROM | disk | FTP | other *** search
- ────────────────────────────────────────────────────────────────────────
- ╔════════════════════════════════════════════════════════════════╗
- ║ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ ║
- ║ █▀█▀█▀▀█▀▀█▀▀▀█▀▀▀█▀▀▀ H O R I Z O N S ▀▀▀▀█▀▀▀█▀▀▀█▀▀█▀▀█▀█▀█ ║
- ║ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Consulting ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ║
- ║ ≡ 1432 E. Commercial Street ─ Springfield, MO 65803 ≡ ║
- ║ ≡ Phone: (417) 839-2174 - Fax: (417) 831-1329 ≡ ║
- ║─────────────────────────── presents ───────────────────────────║
- ║ ║
- ║ █████│ ████│ ███████│ ███████│ ███│ █│ █│ ██████│ ║
- ║ █│ █│ █│ █│ █│ █│ █│ ██│ ██│ █│ ║
- ║ █████│ ██████│ █│ █│ █│ █│█│█│█│ ████│ ║
- ║ █│ █│ █│ █│ █│ █│ █│ █│ █│ █│ █│ ║
- ║ █████│ █│ █│ █│ █│ ███│ █│ █│ ██████│ ║
- ║ ┌────────────────────────────────────┐ ║
- ╚════════════╡ (c) 1990 Horizons Consulting, Inc. ╞══════════════╝
- └────────────────────────────────────┘
- ───────────────────────────────────────────────────────────────────────
- BATTIME is a utility that is packaged as part of the TSRBOOT
- shareware program.
-
- BatTime is a program which will return an error level code to your
- batch file corresponding to the system hours, minutes, or seconds,
- depending on which parameter passed to BatTime.
-
- BatTime requires a time-unit parameter <H || M || S>, where 'H'
- returns hours, 'M' returns minutes, and 'S' returns seconds.
- ┌─────────────┬────────────────┬───────────────────────────────────┐
- │If You Enter:│And the Time is:│BatTime Exits with an errorcode of:│
- ├─────────────┼────────────────┼───────────────────────────────────┤
- │ BATTIME H │ 09:05:13 am │ 9, since Hours = 9. │
- │ BATTIME M │ 09:05:13 am │ 5, since Monutes = 5. │
- │ BATTIME S │ 09:05:13 am │ 13, since Seconds = 13. │
- ├─────────────┼────────────────┼───────────────────────────────────┤
- │ BATTIME H │ 00:00:00 am │ 0, since Hours = 0. {Midnight} │
- │ BATTIME H │ 23:59:00 am │ 23, since Hours = 23. {11 pm} │
- └─────────────┴────────────────┴───────────────────────────────────┘
-
- ───────────────────────────────────────────────────────────────────────
- Simple Batch File using BATTIME:
-
- :Start
-
- BATTIME H
- IF ERRORLEVEL 10 GOTO NOT9AM
- IF ERRORLEVEL 9 GOTO 9AM
- GOTO NOT9AM
-
- :NOT9AM
- GOTO END
-
- :9AM
- ECHO It's sometime between 9-9:59 am!
-
- :end
- ───────────────────────────────────────────────────────────────────────
- The TSRBOOT package may be registered by sending $25 to:
-
- █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█
- █▀█▀█▀▀█▀▀█▀▀▀█▀▀▀█▀▀▀ H O R I Z O N S ▀▀▀▀█▀▀▀█▀▀▀█▀▀█▀▀█▀█▀█
- ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Consulting ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
- ≡ 1432 E. Commercial Street ─ Springfield, MO 65803 ≡
- ≡ Phone: (417) 839-2174 - Fax: (417) 831-1329 ≡
- ───────────────────────────────────────────────────────────────────────
-